package cn.edu.ujn.finaltest.dao;

import java.util.List;

import java.util.Map;

import cn.edu.ujn.finaltest.dao.OrderItem;

public interface OrderItemMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(OrderItem row);

    int insertSelective(OrderItem row);

    OrderItem selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(OrderItem row);

    int updateByPrimaryKey(OrderItem row);
    
    int addOrderItem(Map<String, Integer> orderItem);
    
    int deleteByOrderId(int orderId);
    
    int selectOrderItemListCount(OrderItem orderItem);
    
    List<OrderItem> selectOrderItemList(OrderItem orderItem);
    
    /**
     * 查询某用户的orderItem
     * @param orderItem
     * @return
     */
    List<OrderItem> selectUserOrderItemList(OrderItem orderItem);
}